package org.paradise.pojo;

import java.io.Serializable;
import java.util.Objects;

public class Admin implements Serializable {
    private Integer id;
    private String name;
    private String account;
    private String password;
    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Admin admin = (Admin) o;
        return Objects.equals(id, admin.id) &&
                Objects.equals(name, admin.name) &&
                Objects.equals(account, admin.account) &&
                Objects.equals(password, admin.password) &&
                Objects.equals(state, admin.state);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, account, password, state);
    }
}
